#ifndef YCCONTROLSUPGRADEDIALOG_H
#define YCCONTROLSUPGRADEDIALOG_H
#include <QDialog>

namespace yc {

class UpgradeDialog : public QDialog
{
    Q_OBJECT

public:
    UpgradeDialog(const QString& app_name, const QString& current_version,
                  const QString& current_build_time, bool has_new_version,
                  const QString& new_version, const QString& date, QWidget* parent = nullptr);

Q_SIGNALS:
    void upgradeRequested();
    void ignoreRequested();

private:
    const QString current_version_;
};

} // namespace yc

#endif // YCCONTROLSUPGRADEDIALOG_H
